package com.itstudio.portal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itstudio.portal.entity.News;
import com.itstudio.portal.entity.RestResponse;
import com.itstudio.portal.entity.dto.NewsAddDto;

/**
 * (News)表服务接口
 *
 * @author feng
 * @since 2024-12-13 21:39:21
 */
public interface NewsService extends IService<News> {

    RestResponse getList(Integer pageNum, Integer pageSize, Long id);

    RestResponse addNews(NewsAddDto newsAdd);

    RestResponse updateNews(NewsAddDto newsAdd);

    RestResponse deleteNews(Long id);

    RestResponse getNewsById(Long id);

    RestResponse updateView(Long id);
}

